<template>
  <el-container>
    <el-header>
      <div>
        <span>你好，吴尊先生！</span>
        <el-button type="text">退出</el-button>
      </div>
    </el-header>
    <el-container>
      <el-aside>
        <el-menu
          class="el-menu-vertical-demo"
          background-color="#393d49"
          text-color="#fff"
          active-text-color="#409eff"
          unique-opened
          router
        >
          <el-menu-item index="about">
            <i class="el-icon-menu"></i>
            <span slot="title">概况</span>
          </el-menu-item>
          <el-menu-item index="pageCharge">
            <i class="el-icon-setting"></i>
            <span slot="title">页面管理</span>
          </el-menu-item>
          <el-menu-item index="goodsCharge">
            <i class="el-icon-s-goods"></i>
            <span slot="title">商品管理</span>
          </el-menu-item>
          <el-menu-item index="orderCharge">
            <i class="el-icon-s-help"></i>
            <span slot="title">订单管理</span>
          </el-menu-item>
          <el-menu-item index="rulesEdit">
            <i class="el-icon-s-tools"></i>
            <span slot="title">规则设置</span>
          </el-menu-item>
          <el-menu-item index="jifenData">
            <i class="el-icon-user-solid"></i>
            <span slot="title">积分数据</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script></script>

<style lang="scss" scoped>
.el-header {
  display: flex;
  height: 56px !important;
  padding: 0;
  background-color: #393d49;
  font-size: 18px;

  div {
    line-height: 56px;
    .el-button {
      margin-left: 75vw;
    }
    span {
      margin-left: 190px;
      color: #c4c5c9;
    }
  }
}

.el-aside {
  padding: 0;
  width: 190px !important;
  background-color: #393d49;
}
.el-main {
  padding: 0;
}

.el-menu {
  border-right: none;
}
</style>
